package com.example.demo.service;

import com.example.demo.dao.a;
import com.example.demo.entity.clas;
import com.example.demo.entity.crose;
import com.example.demo.entity.discourage;
import com.example.demo.entity.user;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class As implements asif{
   @Autowired
   a a;

    @Override
    public user getuser(String name, String pwd) {
        return a.getuser(name,pwd);
    }

    @Override
    public boolean adduser(String name, String pwd) {
        return a.adduser(name,pwd);
    }

    @Override
    public List<String> getcname(String type) {
        return a.getcname(type);
    }

    @Override
    public List<crose> getc() {
        return a.getc();
    }

    @Override
    public List<clas> getclas(int cid) {
        return a.getclas(cid);
    }

    @Override
    public List<discourage> getd(int cid) {
        return a.getd(cid);
    }
}
